
<template>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item v-for="item in rotationList" :key="item.id">
            <img :src="item.pic_url" :alt="item.pic_url" />
        </van-swipe-item>
    </van-swipe>
</template>
    
<script setup>
import { defineProps } from 'vue';
let props = defineProps({
    rotationList:{
        type:Array,
        default:[]
    }
})
</script>
    
<style  lang="scss" scoped>
.my-swipe .van-swipe-item {
  width: 100%;
  height: 168px;
  img {
    width: 100%;
  }
}
</style>